<?php
/**
 * Created by PhpStorm.
 * User: Rodger
 * Date: 2020/8/24
 * Time: 17:40
 */

namespace State;
class ConcreteAbstractStateA extends AbstractState
{
    public function Handle(Context $context)
    {
        echo "当前状态是 A。";
        $context->setState(new ConcreteAbstractStateB());
    }
}